package com.yb.guigu.pick.db.bean;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/6/10 14:09
 * FileName: PageRequest
 * Description:
 */
public class PageRequest<T> extends Page<T> {

    private int current=1;

    private int size=10;

    private T condition;

    public void setSize(int size) {
        super.setSize(size);
        this.size = size;
    }

    public void setCurrent(int current) {
        super.setCurrent(current);
        this.current = current;
    }

    public void setCondition(T condition) {
        this.condition = condition;
    }

    @Override
    public void setOrders(List<OrderItem> orders) {
        super.setOrders(orders);
    }


    public T getCondition() {
        return condition;
    }
}
